/*
 * Root.cpp
 *
 *  Created on: 9 May 2014
 *      Author: jozwika
 */

#include "Root.h"

namespace inte {

Root::Root() {
}

Root::~Root() {
}

void Root::setMessage(Message* message) {
}

MessagePtr Root::getMessage(std::string type) {
	for(MessagePtr mp : this->messageVect) {
		if (mp->getType() == type)
			return mp;
	}
	return nullptr;
}

void Root::displayTree() {
	std::cout << "==================== \n";
	for(MessagePtr mp : this->messageVect) {
		std::cout << "- " << mp->getType() << "\n";
	}
}

} /* namespace inte */
